package com.ikas.ai.server.module.condition.enums;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.util.List;
import java.util.Map;

/**
 * @Description: 工况类型枚举
 * @Author: qi.yilai
 * @Date: 2023/4/25 14:30
 * @Version: 1.0.0
 **/
public enum WorkFlowTypeEnum {

    TB20("TB20", "TB20(S->PC SFC)"),

    TB22("TB22", "TB22(S->PC BTB)"),

    TB24("TB24", "TB24(P->PC)"),

    TB26("TB26", "TB26(S->SR)"),

    TB28("TB28", "TB28(SR->G)"),

    TB30("TB30", "TB30(G->GC)"),

    TB32("TB32", "TB32(S->L)"),

    TB34("TB34", "TB34(S->BS)"),

    TB36("TB36", "TB36(P->G)"),

    TB38("TB38", "TB38(S->LC)"),

    TB50("TB50", "TB50(GC->S)"),

    TB52("TB52", "TB52(PC->S)"),

    TB54("TB54", "TB54(P->S)"),

    TB56("TB56", "TB56(PC->P)"),

    TB58("TB58", "TB58(GC->G)"),

    TB60("TB60", "TB60(G->SR)"),

    TB62("TB62", "TB62(SR->S)"),

    TB70("TB70", "TB70(SHUTDOWN)"),

    TB71("TB71", "TB71(回水控制)"),

    TB72("TB72", "TB72(回水跳机)"),
    ;

    private String name;

    private String desc;

    WorkFlowTypeEnum(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static List<Map<String, String>> toMap() {
        List<Map<String, String>> list =Lists.newArrayList();
        for (WorkFlowTypeEnum wfte : WorkFlowTypeEnum.values()) {
            Map<String, String> map = Maps.newHashMap();
            map.put("name", wfte.getName());
            map.put("desc", wfte.getDesc());
            list.add(map);
        }
        return list;
    }

}
